package cn.sofwin.sb;

import cn.sofwin.sb.entity.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan("cn.sofwin.sb.di")
public class AppConfig {

    @Bean
    public User zs(){
       User user=new User();
       user.setId(2);
       user.setUsername("zhangsan");
       user.setPassword("8888");
       user.setNickname("张三");
       return user;
    }
}
